package com.example.communist_app_api.service;

import com.example.communist_app_api.db.pojoDto.Article;
import com.example.communist_app_api.db.pojoDto.CarouselMap;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ArticleService {

    List<Article> getAllArticle();

    int insertArticle(Article article);

    void deleteArticle(Integer id);

    Article getArticleById(Integer id);

    List<Article> getTopArticle(Integer organizationId);

    Boolean updateTopArticle(Integer isTop,Integer id);

    List<Article> getCategorizeArticles(Integer article_type_id);

    boolean UpdateReading(Integer id);

    int getReading(Integer id);

    List<CarouselMap> getCarouselMap();

    boolean isCarouselMap(Integer id);

    boolean noCarouselMap(Integer id);

    List<Article> SearchQueryArticles(String title);

    List<Article> getArticleByParentId(Integer organizationId);

    List<Article> getAllTopArticle();

    List<Article> getOrganizationIdCategorizeArticles(Integer articleTypeId, Integer organizationId);

    List<Article> SearchQueryOrganizationIdArticles(String title,Integer organizationId);
}
